WebInput.NET DateTime editor has client side events model. Every client side event handler at least has 1 parameter (controlId).
In this topic, you will learn how to use DateTime editor client side events in WebInput.
To use WebInput DateTime editor events
- Drag WebInput instance to WebForm.
- Go to WebInput DateTimeEditorClientSideEvents property.
- Add WebInput1_DayOnClick to OnClick event in DayEvents.
- Add WebInput1_HighLightOnClick to OnClick event in HighLightDayEvents.
- In client side add WebInput1_DayOnClick function and put the following code:
JavaScript Copy Code
function WebInput1_DayOnClick(controlId)
{
alert("DayOnClick event is triggered");
}
- In client side add WebInput1_HighLightOnClick function and put the following code:
JavaScript Copy Code
function WebInput1_HighLightDayOnClick(controlId)
{
alert("HighLightDayOnClick event is triggered");
}
- Compile and run the Project.